package flexutils.logging.event {

    import flash.events.Event;
    
    import flexutils.logging.Level;

    public class LogEvent extends Event {

        public static const TYPE:String = "flexutils.logging.event.LogEvent";

        private var lv:Level;

        private var msg:String;

        public function LogEvent(msg:String, lv:Level,
                type:String = TYPE, bubbles:Boolean = false, cancelable:Boolean = false)
        {
            super(type, bubbles, cancelabel);

            this.msg = msg;
            this.lv = lv;
        }

        public function get level():Level {
            return this.lv;
        }

        public function get message():String {
            return this.msg;
        }
    }
}